package com.hnevc.sendtask;

public class SendTask {
	private String number;//快递单号
	private double goodsWeight;//获取重量
	
	public SendTask(String number,double goodsWeight){
		this.number = number;
		this.goodsWeight = goodsWeight;
	}
	//发货前
	public void sendBefore(){
		System.out.println("订单正在处理中....");
		System.out.println("货物重量"+this.goodsWeight+"KG");
		System.out.println("货物验货完毕");
		System.out.println("货物装货完毕");
		System.out.println("通知运货人");
		System.out.println("快递单号:"+this.number);
	}
	//发货中
	public void send(Transportation t, GPS gps){
		System.out.println("发货中...");
		System.out.println("运货人:"+t.getAdmin());
		System.out.println("货车编号:"+t.getNumber());
		System.out.println("货车型号:"+t.getModel());
		System.out.println("当前货车位置："+gps.showCoordinate());
	}
	//发货后
	public void sendAfter(Transportation t){
		System.out.println("货物运输已经完成");
		System.out.println("运货人:"+t.getAdmin()+"所驾驶的编号为："+t.getNumber()+"的"+t.getModel()+"已归还");
	}
	
}
